﻿using TbShop.Web.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace TbShop.Web.Areas.Admin.Models
{
    public class SystemMessageViewModel: BaseViewModel
    {
        /// <summary>
        /// 管理员编号
        /// </summary>
        public string AdminId { set; get; }

        /// <summary>
        /// 是否已读
        /// </summary>
        public bool IsRead { set; get; }

        /// <summary>
        /// 消息内容
        /// </summary>
        public string Content { set; get; }
        /// <summary>
        /// 消息类型
        /// </summary>
        public string MessageType { set; get; }
        public string MessageTypeText
        {
            get
            {
                return CodeTableHelper.GetCodeDescriptionWithCategoryAndCode(Constants.CodeCategories.SystemMessageType, this.MessageType);
            }
        }

    }
}